package com.leo.base.initialize;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @ClassName HelloApplicationContextInitializer
 * @Description 事件回调demo
 * @Author wangss
 * @date 2020.09.20 15:30
 * @Version 1.0
 */
@Slf4j
public class HelloApplicationContextInitializer implements ApplicationContextInitializer<ConfigurableApplicationContext> {

    @Override
    public void initialize(ConfigurableApplicationContext configurableApplicationContext) {
        log.info("运行 ApplicationContextInitializer:ApplicationContextInitializer...initialize...{}", configurableApplicationContext.getEnvironment());
    }
}
